if ENABLE_PROTOCOL_XMPP

ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -unsafe -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../../build/
ASSEMBLY_NAME=Galaxium.Protocol.Xmpp
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN = galaxium-protocol-xmpp.pc.in

COMPILE_TARGET = library

REFERENCES =  \
	-pkg:anculus-core \
	-pkg:mono-addins \
	-pkg:mono-addins-setup \
	-r:../../../dlls/libidn.dll \
	-r:../../../build/Galaxium.Client.dll \
	-r:../../../build/Galaxium.Core.dll \
	-r:../../../build/Galaxium.Gui.dll \
	-r:../../../build/Galaxium.Protocol.dll \
	-r:System \
	-r:System.Core \
	-r:System.Xml

RESOURCES =  \
	Galaxium.Protocol.Xmpp.addin \
	Library/Extensions/Disco/disco-categories.xml

EXTRAS = 
DATA_FILES = 

FILES =  \
	Activities/AbstractXmppActivity.cs \
	Activities/ContactAddedActivity.cs \
	Activities/ContactRemovedActivity.cs \
	Activities/MessageReceivedActivity.cs \
	Activities/StatusChangedActivity.cs \
	Activities/SubscriptionApprovedActivity.cs \
	Activities/SubscriptionDeclinedActivity.cs \
	Activities/SubscriptionRequestedActivity.cs \
	AssemblyInfo.cs \
	Conditions/ContactSubscriptionCondition.cs \
	Conditions/RosterCondition.cs \
	ConferenceManager.cs \
	Extensions.cs \
	Library/CapsHelper.cs \
	Library/Client.cs \
	Library/Contact.cs \
	Library/Core/Authenticator.cs \
	Library/Core/Connection.cs \
	Library/Core/ConnectionState.cs \
	Library/Core/CoreStream.cs \
	Library/Core/IMessageListener.cs \
	Library/Core/IPresenceListener.cs \
	Library/Core/Iq.cs \
	Library/Core/Presence.cs \
	Library/Core/QueryException.cs \
	Library/Core/ResourceBinder.cs \
	Library/Core/RosterItem.cs \
	Library/Core/Stanza.cs \
	Library/Core/StanzaError.cs \
	Library/Core/StanzaErrorEventArgs.cs \
	Library/Core/StreamError.cs \
	Library/Core/StreamErrorException.cs \
	Library/Core/StreamFeatures.cs \
	Library/Core/XmlMessage.cs \
	Library/EntityEventArgs.cs \
	Library/EventArgs.cs \
	Library/Exceptions.cs \
	Library/Extensions/BlockList.cs \
	Library/Extensions/Bookmarks.cs \
	Library/Extensions/ConferenceBookmark.cs \
	Library/Extensions/DataForms/DataField.cs \
	Library/Extensions/DataForms/DataForm.cs \
	Library/Extensions/DataForms/ListOption.cs \
	Library/Extensions/DataForms/SearchResultForm.cs \
	Library/Extensions/DataForms/SearchResultHeader.cs \
	Library/Extensions/DataForms/SearchResultItem.cs \
	Library/Extensions/Disco/Identity.cs \
	Library/Extensions/Disco/IdentityDescription.cs \
	Library/Extensions/Disco/Info.cs \
	Library/Extensions/Disco/InfoRequest.cs \
	Library/Extensions/Disco/Item.cs \
	Library/Extensions/Disco/Items.cs \
	Library/Extensions/Disco/ItemsRequest.cs \
	Library/Extensions/Disco/OctetCollationComparer.cs \
	Library/Extensions/QueryResultEventArgs.cs \
	Library/Extensions/Registration.cs \
	Library/Extensions/Service.cs \
	Library/Extensions/ServiceBrowser.cs \
	Library/Extensions/ServiceIdentity.cs \
	Library/Extensions/SoftwareVersion.cs \
	Library/Extensions/vCard.cs \
	Library/Extensions/vCardAddress.cs \
	Library/Extensions/XmlStorage.cs \
	Library/Helpers/NotificationHelper.cs \
	Library/ICacheHandler.cs \
	Library/JabberID.cs \
	Library/Messaging/ChatMessage.cs \
	Library/Messaging/Conference.cs \
	Library/Messaging/ConferenceEventArgs.cs \
	Library/Messaging/Conversation.cs \
	Library/Messaging/Headline.cs \
	Library/Messaging/HistoryRestriction.cs \
	Library/Messaging/MessageHead.cs \
	Library/Messaging/MessageInfo.cs \
	Library/Messaging/MessageManager.cs \
	Library/Messaging/MUCMessage.cs \
	Library/Messaging/RoomContact.cs \
	Library/Messaging/RoomInfo.cs \
	Library/Namespaces.cs \
	Library/ProtocolLog.cs \
	Library/ResourceInfo.cs \
	Library/Roster.cs \
	Library/Sasl/DigestMD5.cs \
	Library/Sasl/Mechanism.cs \
	Library/Sasl/Plain.cs \
	Library/Sasl/SaslError.cs \
	Library/Status.cs \
	Library/Streams/FileTransfer.cs \
	Library/Streams/FileTransferListener.cs \
	Library/Streams/IAttachable.cs \
	Library/Streams/IBytestreamManager.cs \
	Library/Streams/IChunkedStream.cs \
	Library/Streams/InBandBytestream.cs \
	Library/Streams/InBandBytestreamManager.cs \
	Library/Streams/IStreamProfileListener.cs \
	Library/Streams/Socks5BytestreamManager.cs \
	Library/Streams/Socks5BytestreamManager.StreamHost.cs \
	Library/Streams/StreamInitiator.cs \
	Library/Streams/StreamListener.cs \
	Library/Utility/Cryptography.cs \
	Library/Utility/IdGen.cs \
	Library/Utility/Srv.cs \
	Library/Utility/StringExt.cs \
	Library/Utility/Timeout.cs \
	Library/Utility/Uuid.cs \
	Library/Utility/WeakReference.cs \
	Library/Xml/Element.cs \
	Library/Xml/ElementEventArgs.cs \
	Library/Xml/Normalization.cs \
	Library/Xml/Parser.cs \
	Library/Xml/Serializer.cs \
	Library/Xml/StreamParser.cs \
	RosterWrapper.cs \
	XmppAccount.cs \
	XmppAccountCache.cs \
	XmppClient.cs \
	XmppConference.cs \
	XmppConferenceContact.cs \
	XmppConferenceStatus.cs \
	XmppContact.cs \
	XmppConversation.cs \
	XmppConversationManager.cs \
	XmppDisplayImage.cs \
	XmppFileTransfer.cs \
	XmppGroup.cs \
	XmppMucContact.cs \
	XmppPresence.cs \
	XmppPrivateConversation.cs \
	XmppProtocol.cs \
	XmppSession.cs

if ENABLE_PROTOCOL_XMPP
all: $(ASSEMBLY)
else
all:
endif

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include

else
all:
endif
